<?php
/**
 * Created by PhpStorm.
 * User: tri
 * Date: 7/24/2014
 * Time: 9:52 AM
 */

require_once('../../class_ajax_request/classAjax.php');
include_once('../../application/functions.php');
include_once('../../application/DataConfig.php');


$obj = new AjaxRequest();
$voters = $obj->getVoter($idPost);
echo '<pre style="float: left; width: 100%">';
print_r($voters);
echo '</pre>';

echo '<ul class="voter-list">';
foreach($voters as $voter){
    $avatar = $voter['user_avatar'];
    echo '<li class="voter">';
    echo '<a class="user-img" href="">
        <img src="'.$avatar.'">
    </a>';
    echo '<div class="voter-right">
        <a class="voter-name">'.$voter['user_name'].'</a>
         <a class="voter-real-name">'.$voter['user_real_name'].'</a>
         <p>said: <b>'.$voter['user_answer_value'].'</b></p>
    </div>';
    echo '</li>';
}
echo '</ul>';


